Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zcash_client_sqlite: Fix bugs & reduce complexity in scan progress computation. #1562

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

nuttycom
Copy link
Contributor

@nuttycom nuttycom commented Oct 8, 2024

No description provided.

In scan progress computation, `recover_until_height` was incorrectly
being treated as an inclusive end, meaning that it was possible for a
block's notes to be counted both within the recovery range and within
the scanning range.
Copy link

codecov bot commented Oct 8, 2024

Codecov Report

Attention: Patch coverage is 67.50000% with 39 lines in your changes missing coverage. Please review.

Project coverage is 61.60%. Comparing base (dec3024) to head (2cba3ef).

Files with missing lines Patch % Lines
zcash_client_sqlite/src/wallet.rs 66.66% 39 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1562      +/-   ##
==========================================
- Coverage   61.62%   61.60%   -0.02%     
==========================================
  Files         148      148              
  Lines       18825    18816       -9     
==========================================
- Hits        11601    11592       -9     
  Misses       7224     7224              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

We now compute the fallback tree size at the birthday height and the
recover-until height separately in order to avoid the mixing of
concerns.
@nuttycom nuttycom marked this pull request as ready for review October 9, 2024 00:33
@nuttycom nuttycom requested a review from str4d October 9, 2024 00:34
@nuttycom nuttycom marked this pull request as draft October 9, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants